﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Asoft.Web.Models
{
    public static class PConvert
    {
        public static string OpenClose(int flag)
        {
            return flag == 1 ? "开" : "关";
        }

        public static string WindDirection(int i)
        {
            switch (i)
            {
                case 0:
                    return "无";
                case 1:
                    return "东方";
                case 2:
                    return "东北";
                case 3:
                    return "北方";
                case 4:
                    return "西北";
                case 5:
                    return "西方";
                case 6:
                    return "西南";
                case 7:
                    return "南方";
                case 8:
                    return "东南";
                default:
                    return "未定义";
            }
        }
    }
}